import * as author from './controller'

export const baseUrl = '/author'

export default [
{
    method:'POST',
    route: '/authorList',
    handlers: [author.checkToken,author.authorList]
},
{
    method:'POST',
    route: '/createAuthor',
    handlers: [author.checkToken,author.createAuthor]
},
{
    method:'POST',
    route: '/updateAuthor',
    handlers: [author.checkToken,author.updateAuthor]
},
{
    method:'POST',
    route: '/deleteAuthor',
    handlers: [author.checkToken,author.deleteAuthor]
},
{
    method:'POST',
    route: '/updateWorkAuthor',
    handlers: [author.checkToken,author.updateWorkAuthor]
},
{
    method:'POST',
    route: '/createWorkAuthor',
    handlers: [author.checkToken,author.createWorkAuthor]
}
]